<!DOCTYPE html>
<html lang="zh-CN">
<head>
    {include file="public/header" /}
    <title>秒到2.0商户管理后台</title>
    <link href="/public__STATIC__/assets/pages/css/user.css" rel="stylesheet" type="text/css" />
    <link href="/public__STATIC__/assets/pages/css/order.css" rel="stylesheet" type="text/css" />
</head>

<body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white">

<div class="page-wrapper">
    {include file="public/navbar" /}
    <div class="clearfix"></div>
    <div class="page-container">
        {include file="public/sidebar" /}
        <div class="page-content-wrapper">
            <div class="page-content">
                <div class="row">
                    <div class="col-md-12">
                        <div class="portlet light bordered relative">
                            <div class="portlet-title">
                                <div class="caption"><i class="icon-settings font-dark"></i><span class="caption-subject bold uppercase">订单发货</span></div>
                            </div>

                            <!--<div class="page-bar">
                <ul class="page-breadcrumb">
                    <li><a href="/p/index">首页</a> <i class="fa fa-circle"></i></li>
                    <li><a href="/p/user/order">订单管理</a> <i class="fa fa-circle"></i></li>
                    <li><span>订单发货</span></li>
                </ul>
            </div>-->
                            <div class="portlet-body">
                                <!-- 基本资料 -->
                                <div class="user_jbzl col-xs-12">
                                    <div class="user_jbzl_head">收货地址</div>
                                    <div style="height: 20px"></div>
                                    <div class="user_jbzl_jbzl ">
                                        <div class="order_add row">
                                            <div class="col-xs-2">收货人：{$order.userName} </div>
                                            <div class="col-xs-2">联系电话：{$order.userPhone}</div>
                                            <div class="col-xs-5">详细地址：{$order.deliverAddress}</div>
                                        </div>
                                    </div>
                                </div>

                                <div class="user_jbzl col-xs-12">
                                    <div class="user_jbzl_head">买家留言</div>
                                    <div style="height: 20px"></div>
                                    <div class="user_jbzl_jbzl ">
                                        <div class="order_add row">
                                            <div if="${not #strings.isEmpty(order?.content)"  class="col-xs-3" >{$order.content}</div>
                                        </div>

                                    </div>

                                </div>

                                <div class="col-xs-12 ">
                                    <!-- 基本资料 -->
                                    <div class="user_jbzl">
                                        <div class="user_jbzl_head  ">订单信息</div>
                                        <div style="height: 10px"></div>

                                        <div class="row fpxx">
                                            <div class="col-xs-4">订单编号：{$order.orderNO}</div>
                                            <div class="col-xs-4">下单时间：<span id="jysj1">{$order.create_time}</span></div>
                                            <div class="col-xs-4">
                                                付款时间：<span id="jysj">{$order.payDate}</span>
                                            </div>

                                        </div>
                                        <div style="height: 10px"></div>
                                        <div class="row fpxx">
                                            <div class="col-xs-4">
                                                交易单号：{$order.transaction_Id}
                                            </div>


                                        </div>
                                    </div>

                                </div>


                                <div class="col-xs-12 user_shdz">
                                    <div style="height: 10px"></div>
                                    <div class="user_jbzl_head">商品信息</div>
                                    <div id="table" class="row">
                                        <div class="col-xs-12">
                                            <table class="table table-bordered">
                                                <tbody>
                                                <tr>
                                                    <th width="40%">商品</th>
                                                    <th width="20%">单价</th>
                                                    <th width="20%">数量</th>
                                                    <th width="20%">商品总价</th>
                                                </tr>
                                                {volist name="orderproductDetail" id="vo"}
                                                <tr>
                                                    <td style="display: flex; align-items: center;border: none;justify-content: center;">
                                                        <img src="{$vo.productImg}" width="71px" class=" margin-right-10" />
                                                        <div class="pro_de">
                                                            {$vo.productName}<br/>
                                                            <!--<span style="color:#999999">[[${p?.productSpec?.name}]] [[${p?.productSpec?.name1}]] [[${p?.productSpec?.name2}]]  </span>-->
                                                            <!--<span style="color:red" if="${p?.refundStatus==1">(售后)</span>-->
                                                        </div>
                                                    </td>
                                                    <td>
                                                        {$vo.price / 100}
                                                    </td>
                                                    <td>
                                                        {$vo.count}
                                                    </td>
                                                    <td>
                                                        {$vo.price /100 * $vo.count}
                                                    </td>
                                                </tr>
                                                {/volist}
                                                </tbody>
                                            </table>

                                        </div>
                                    </div>
                                </div>
                                <div class="col-xs-12  ">

                                    <div  class="col-xs-7 text-right o_total">
                                        优惠金额：&nbsp;0元
                                    </div>
                                    <div class="col-xs-3 text-right o_total">
                                        订单总金额：&nbsp;{$order.total / 100}元
                                    </div>
                                    <div class="col-xs-1"></div>
                                </div>

                                <!-- 	 基本资料
                                <div class="user_jbzl">
                                    <div class="user_jbzl_head  ">发票信息</div>
                                    <div style="height: 20px"></div>


                                    <div class="row fpxx">
                                        <div class="col-xs-4">发票类型：电子发票（单位）</div>
                                        <div class="col-xs-4">发票类型：单位名称</div>
                                        <div class="col-xs-4">税号：纳税人识别号</div>






                                    </div> -->

                                <div class="col-xs-12 ">
                                    <div class="user_jbzl_head  ">送货方式</div>

                                    <div class="row">
                                        <div class="col-md-12">
                                            <form id="form_address_add" action="{:url('/admin/Order/DoDelivergoods')}" method="post">
                                                <input type="hidden" name="id" value="{$order.id}" />
                                                <!-- 手机 -->
                                                <div class="row user_form_g">
                                                    <div class="col-xs-2 text-right w_b_box">
                                                        <span class="txt_red">*</span> <span class="txt_no">送货方式：</span>
                                                    </div>

                                                    <div class="col-xs-3">
                                                        <div style="padding: 6px 12px;">
                                                            <input type="radio" checked="checked" onclick="getDeliver(this)" value="1" name="deliverMethod">自行配送&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                            <input type="radio" onclick="getDeliver(this)" value="0" name="deliverMethod">自选物流&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                            <input type="radio" onclick="getDeliver(this)" value="2" name="deliverMethod">达达
                                                        </div>
                                                    </div>
                                                </div>
                                                <!-- 手机 -->
                                                <div class="row user_form_g  deliverwl" style="display: none">
                                                    <div class="col-xs-2 text-right w_b_box">
                                                        <span class="txt_red">*</span> <span class="txt_no">快递公司名称：</span>
                                                    </div>

                                                    <div class="col-xs-3">
                                                        <select name="expressName" class="form-control ">
                                                            <option value="">物流公司</option>
                                                            <option value="shunfeng">顺丰快递</option>
                                                            <option value="ems">EMS</option>
                                                            <option value="shentong">申通快递</option>
                                                            <option value="yuantong">圆通快递</option>
                                                            <option value="zhongtong">中通快递</option>
                                                            <option value="huitong">汇通快递</option>
                                                            <option value="tiantian">天天快递</option>
                                                            <option value="yunda">韵达快递</option>
                                                            <option value="debang">德邦物流</option>
                                                            <option value="zhaijisong">宅急送快递</option>
                                                            <option value="zhongguoyouzheng">中国邮政</option>
                                                            <option value="youzhengpingyou">邮政平邮</option>
                                                        </select>
                                                    </div>
                                                </div>

                                                <!-- 手机 -->
                                                <div class="row user_form_g deliverwl" style="display: none">
                                                    <div class="col-xs-2 text-right w_b_box">
                                                        <span class="txt_red">*</span> <span class="txt_no">快递单号：</span>
                                                    </div>

                                                    <div class="col-xs-3">

                                                        <input class="form-control " type="text" name="expressNo" maxlength="35" />
                                                    </div>
                                                </div>

                                                <!-- 手机 -->
                                                <div class="row user_form_g deliverps" >
                                                    <div class="col-xs-2 text-right w_b_box">
                                                        <span class="txt_red">*</span> <span class="txt_no">配送员：</span>
                                                    </div>

                                                    <div class="col-xs-3">
                                                        <select name="deliverUserName" class="form-control ">
                                                            <option value="">请选择</option>
                                                            {volist name="staff" id="vo"}
                                                            <option value="{$vo.id}">{$vo.name} + {$vo.phone}</option>
                                                            {/volist}

                                                        </select>
                                                    </div>
                                                </div>

                                                <div class="row user_form_g deliverps">
                                                    <div class="col-xs-2 text-right w_b_box">
                                                        <span class="txt_red">*</span> <span class="txt_no">预计送达：</span>
                                                    </div>

                                                    <div class="col-xs-3">

                                                        <select name="expecteddelivery" class="form-control ">
                                                            <option value="0">请选择</option>
                                                            <option value="1">30分钟后</option>
                                                            <option value="2">1小时后</option>
                                                            <option value="3">3小时后</option>
                                                            <option value="4">1天后</option>
                                                            <option value="5">2天后</option>
                                                            <option value="6">3天后</option>
                                                        </select>
                                                    </div>
                                                </div>

                                                <div class="row user_form_g deliverdd form-inline " style="display: none">
                                                    <div class="col-xs-2 text-right w_b_box">
                                                        <span class="txt_red">*</span> <span class="txt_no">当前账户余额：</span>
                                                    </div>

                                                    <div class="col-xs-3 text-right w_b_box">
                                                        <div class="row fpxx">
                                                            <div class="col-xs-4">1000元</div>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-2 text-right w_b_box">
                                                        <span class="txt_red">*</span> <span class="txt_no">运费：</span>
                                                    </div>

                                                    <div class="col-xs-3 text-right w_b_box form-inline">
                                                        <div class="row fpxx">
                                                            <div class="" id="deliverFee"></div>
                                                        </div>
                                                    </div>

                                                </div>

                                                <div class="row user_form_g">
                                                    <div class="col-xs-2 text-right w_b_box"></div>

                                                    <div class="col-xs-3 ">
                                                        <div id="sava_add" class="btn glyphicon glyphicon-ok yellow">保存</div>
                                                        &nbsp;&nbsp;&nbsp;

                                                        <div id="return_add1" class="btn default">取消</div>
                                                    </div>
                                                    <div class="col-md-5">
                                                        <span id="user_eidt_error" class="help-block text-left"></span>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="page-footer">
        <div class="page-footer-inner">
            <a>2017 &copy; 秒迅科技</a>
        </div>
        <div class="scroll-to-top">
            <i class="icon-arrow-up"></i>
        </div>
    </div>
</div>

<!-- 业务js --><script src="/public__STATIC__/assets/global/plugins/include.js" type="text/javascript"></script>
<script src="/public__STATIC__/assets/pages/scripts/order.js" type="text/javascript"></script>

<script type="text/javascript">


        var $orderId = "{$id}";




    var flag='[[${flag}]]';
    var fla='[[${fla}]]';

    if(fla=='true'){
        alert("提示：存在待处理的 售后，请先处理完");
        $("#sava_add").hide();
    }else{
        if(flag=='true'){
            alert("提示：该订单下有售后已同意,发货时请仔细审核");
            $("#sava_add").show();
        }
    }

</script>

</body>

</html>